from w.settings import W

def getModule(name=None,local=None):
    mod = __import__('w.blocks.%s'%(name or W.BLOCKS.USE_BLOCKS_MODULE),fromlist=['*'])
    if local:
        local.update(mod.__dict__)
    return mod

getModule(local=locals())
